﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace Food
{
	public class Food
	{
		public string Name
		{
			get;
			set;
		}

		public float Price;

		public Food(XmlNode node)
		{
			XmlElement xmlElement = (XmlElement)node;

			Name = xmlElement.GetAttribute("name");
			Price = (float)Convert.ToDouble(xmlElement.GetAttribute("price"));
		}

		public Food(string name, float price)
		{
			Name = name;
			Price = price;
		}

	}
}
